package com.ruoyi.client.service.impl;

import com.ruoyi.client.mapper.IndexMapper;
import com.ruoyi.client.pojo.vo.IndexCarouselVo;
import com.ruoyi.client.pojo.vo.IndexProductVo;
import com.ruoyi.client.service.IIndexService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author：HuaQP
 * @Date：2024/4/23
 */
@Service
public class IndexServiceImpl implements IIndexService {
    @Resource
    private IndexMapper indexMapper;

    @Override
    public List<IndexCarouselVo> listCarouselItems() {
        return indexMapper.listCarouselItems();
    }

    @Override
    public List<IndexProductVo> listRecommendedItems() {
        return indexMapper.listRecommendedItems();
    }

    @Override
    public List<IndexProductVo> listNewArrialItems() {
        return indexMapper.listNewArrialItems();
    }

    @Override
    public List<IndexProductVo> listTopSaleItems() {
        return indexMapper.listTopSaleItems();
    }
}
